package com.phoenix.jsef.cachecomponent;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * @version V1.0
 * @ClassName: CacheExpire
 * @Description:TODO(这里用一句话描述这个类的作用)
 * @author: 李启联
 * @date: 2018-04-03 16:31
 * @Copyright: Copyright (c) 2018
 * 申明：本内容未经作者本人同意,禁止外泄以及用于其他的商业项目.
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface CacheExpire {
    /**
     * expire time, default 60s
     */
    @AliasFor("expire")
    long value() default 60L;

    /**
     * expire time, default 60s
     */
    @AliasFor("value")
    long expire() default 60L;
}
